home *** CD-ROM | disk | FTP | other *** search
/ Risc World 5 / Risc World 5.iso / SOFTWARE / Issue3 / Games / xrick / !xrick / src / c / scr_pause < prev    next >
Text File  |  2004-06-24  |  1KB  |  54 lines

  1. /*
  2.  * xrick/src/scr_pause.c
  3.  *
  4.  * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5.  *
  6.  * The use and distribution terms for this software are contained in the file
  7.  * named README, which can be found in the root of this distribution. By
  8.  * using this software in any fashion, you are agreeing to be bound by the
  9.  * terms of this license.
  10.  *
  11.  * You must not remove this notice, or any other, from this software.
  12.  */
  13.  
  14. #include <stddef.h> /* NULL */
  15.  
  16. #include "system.h"
  17. #include "game.h"
  18. #include "screens.h"
  19.  
  20. #include "draw.h"
  21. #include "control.h"
  22. #include "ents.h"
  23.  
  24.  
  25. /*
  26.  * Display the pause indicator
  27.  */
  28. void
  29. screen_pause(U8 pause)
  30. {
  31.   if (pause == TRUE) {
  32.     draw_tilesBank = 0;
  33.     draw_tllst = screen_pausedtxt;
  34.     draw_setfb(120, 80);
  35. #ifdef GFXPC
  36.     draw_filter = 0xAAAA;
  37. #endif
  38.     draw_tilesList();
  39.   }
  40.   else {
  41. #ifdef GFXPC
  42.     draw_filter = 0xFFFF;
  43. #endif
  44.     draw_map();
  45.     ent_draw();
  46.     draw_drawStatus();
  47.   }
  48.   game_rects = &draw_SCREENRECT;
  49. }
  50.  
  51.  
  52. /* eof */
  53.  
  54.